//
//  IBWebViewController.h
//  O2
//
//  Created by qilongTan on 15/10/31.
//  Copyright © 2015年 apple. All rights reserved.
//  网页视图

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import "HEBaseViewController.h"

typedef void(^AllHtmlStringBlock)(NSString *htmlStr);

@interface XLWebViewController : HEBaseViewController
@property (nonatomic,strong) WKWebView * webView;
@property (nonatomic,strong) UIProgressView * progressView;
@property (nonatomic) UIColor *progressViewColor;
@property (nonatomic,weak) WKWebViewConfiguration * webConfiguration;
@property (nonatomic, copy) NSString * url;
@property (nonatomic, strong) NSMutableDictionary * header;

@property (nonatomic, assign) BOOL showPageTitle;
@property (nonatomic, copy) AllHtmlStringBlock htmlBlock;

- (void)showNav:(BOOL)show;

- (instancetype)initWithUrl:(NSString *)url;

//更新进度条
- (void)updateProgress:(double)progress;

//更新导航栏按钮，子类去实现
- (void)updateNavigationItems;

- (void)getAllHtmlStringBlock:(AllHtmlStringBlock)block;

@end
